<template>
	
</template>

<script>
	import {getMainQQ} from '@/api/index.js'
	export default {
		methods: {
			copyInviteCode() {
				uni.setClipboardData({
					data: 'STAR-8729-FIGHTER',
					success: () => {
						uni.showToast({
							title: '已复制',
							icon: 'none'
						});
					}
				});
			},
			generatePoster() {
				uni.showToast({
					title: '海报生成中...',
					icon: 'none'
				});
			},
			viewFullRanking() {
				uni.navigateTo({
					url: '/pages/index/rank'
				})
			},
			joinQQGroup() {
				uni.showToast({
					title: '打开QQ中...',
					icon: 'none'
				});
			},
			handleCardClick(e) {
				if (process.env.VUE_APP_PLATFORM === 'h5') {
					console.log('点击坐标:', e.detail?.x, e.detail?.y);
				}
			},
			async init() {
				const res = await getMainQQ()
				console.log(res);
			}
		}
	};
</script>

<style scoped>
	
</style>